Optimal. Leaf size=29 \[ \frac {B \tan ^2(c+d x)}{2 d}+\frac {B \log (\cos (c+d x))}{d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.02, antiderivative size = 29, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 34, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.088, Rules used = {21, 3473, 3475} \[ \frac {B \tan ^2(c+d x)}{2 d}+\frac {B \log (\cos (c+d x))}{d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 21
Rule 3473
Rule 3475
Rubi steps
\begin {align*} \int \frac {\tan ^3(c+d x) (a B+b B \tan (c+d x))}{a+b \tan (c+d x)} \, dx &=B \int \tan ^3(c+d x) \, dx\\ &=\frac {B \tan ^2(c+d x)}{2 d}-B \int \tan (c+d x) \, dx\\ &=\frac {B \log (\cos (c+d x))}{d}+\frac {B \tan ^2(c+d x)}{2 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.03, size = 26, normalized size = 0.90 \[ \frac {B \left (\tan ^2(c+d x)+2 \log (\cos (c+d x))\right )}{2 d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.76, size = 31, normalized size = 1.07 \[ \frac {B \tan \left (d x + c\right )^{2} + B \log \left (\frac {1}{\tan \left (d x + c\right )^{2} + 1}\right )}{2 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 0.76, size = 187, normalized size = 6.45 \[ -\frac {B \log \left ({\left | -\frac {\cos \left (d x + c\right ) + 1}{\cos \left (d x + c\right ) - 1} - \frac {\cos \left (d x + c\right ) - 1}{\cos \left (d x + c\right ) + 1} + 2 \right |}\right ) - B \log \left ({\left | -\frac {\cos \left (d x + c\right ) + 1}{\cos \left (d x + c\right ) - 1} - \frac {\cos \left (d x + c\right ) - 1}{\cos \left (d x + c\right ) + 1} - 2 \right |}\right ) + \frac {B {\left (\frac {\cos \left (d x + c\right ) + 1}{\cos \left (d x + c\right ) - 1} + \frac {\cos \left (d x + c\right ) - 1}{\cos \left (d x + c\right ) + 1}\right )} + 6 \, B}{\frac {\cos \left (d x + c\right ) + 1}{\cos \left (d x + c\right ) - 1} + \frac {\cos \left (d x + c\right ) - 1}{\cos \left (d x + c\right ) + 1} + 2}}{2 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.18, size = 33, normalized size = 1.14 \[ \frac {B \left (\tan ^{2}\left (d x +c \right )\right )}{2 d}-\frac {B \ln \left (1+\tan ^{2}\left (d x +c \right )\right )}{2 d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 1.09, size = 30, normalized size = 1.03 \[ \frac {B \tan \left (d x + c\right )^{2} - B \log \left (\tan \left (d x + c\right )^{2} + 1\right )}{2 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 6.21, size = 28, normalized size = 0.97 \[ -\frac {B\,\left (\ln \left ({\mathrm {tan}\left (c+d\,x\right )}^2+1\right )-{\mathrm {tan}\left (c+d\,x\right )}^2\right )}{2\,d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.84, size = 53, normalized size = 1.83 \[ \begin {cases} - \frac {B \log {\left (\tan ^{2}{\left (c + d x \right )} + 1 \right )}}{2 d} + \frac {B \tan ^{2}{\left (c + d x \right )}}{2 d} & \text {for}\: d \neq 0 \\\frac {x \left (B a + B b \tan {\relax (c )}\right ) \tan ^{3}{\relax (c )}}{a + b \tan {\relax (c )}} & \text {otherwise} \end {cases} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________